include 'xiaoluyy.thrift'
include 'common.thrift'
include 'meta/address.thrift'

namespace java com.xiaoluyy.demo.thrift

typedef common.ReturnMsg    ReturnMsg
typedef common.LongReturnMsg    LongReturnMsg
typedef common.IdListReturnMsg    IdListReturnMsg

typedef address.AddressInfo AddressInfo
typedef address.AddressReturnMsg AddressReturnMsg
typedef address.AddressEntity AddressEntity
typedef address.QueryAddressReturnMsg QueryAddressReturnMsg

service DemoService1 extends xiaoluyy.BaseService {
     /**
        * 查询地址
     **/
    QueryAddressReturnMsg queryAddress(1:string logId, 2:i32 addressId)

    /**
    * 添加地址
    **/
    AddressReturnMsg addAddress(1:string logId, 2:AddressInfo addressInfo)
    /**
    * 修改地址
    **/
    AddressReturnMsg modifyAddress(1:string logId, 2:i32 addressId,3:AddressInfo addressInfo)
   /**
    * 删除地址
    **/
    AddressReturnMsg deleteAddress(1:string logId, 2:i32 addressId)
}